package com.gery.tn.backend.model;

import java.util.Calendar;
import java.util.GregorianCalendar;



public class Appointment {

    private Calendar date;
    private String note;
    private String clientName;
    private long clientID;
    private long id;
    
    
    public Appointment(Calendar date, String note, String clientName, long id) {
        this.date = GregorianCalendar.getInstance();
        this.date = date;
        this.note = note;
        this.clientName = clientName;
        this.clientID = id;
    }
    
    
    public void setDate(Calendar date) {
        this.date = date;
    }
    public void setNote(String note) {
        this.note = note;
    }
    public void setClientName(String name) {
        this.clientName = name;
    }
    public void setClientID(long id) {
        this.clientID = id;
    }
    public void setID(long id) {
        this.id = id;
    }
    public Calendar getDate() {
        return date;
    }
    public String getNote() {
        return note;
    }
    public String getClientName() {
        return clientName;
    }
    public long getClientID() {
        return clientID;
    }
    public long getID() {
        return id;
    }
    
    public String toString(Calendar date) {
        String tempString = "";
        tempString = tempString + date.get(Calendar.YEAR) + "/";
        tempString = tempString + date.get(Calendar.MONTH) + "/";
        tempString = tempString + date.get(Calendar.DAY_OF_MONTH) + "/";
        tempString = tempString + date.get(Calendar.HOUR_OF_DAY) + "/";
        tempString = tempString + date.get(Calendar.MINUTE);
        return tempString;
    }
    
}
